/*
 * @Author: Yxliam
 * @Date: 2023-12-12 11:44:53
 * @LastEditors: Yxliam
 * @LastEditTime: 2024-01-24 15:52:29
 * @Description:
 */
import React, { createContext, useState } from "react";
import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
import Router from "./router";
import { View, Text } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
// import { Provider } from 'mobx-react';
// import themeStore from "stores/theme"
// import GlobalLoading, {globalLoadingRef} from './components/GlobalLoading';
// import GlobalMessage, {globalMessageRef} from './components/GlobalMessage';




function App() {
  return (
    // <Provider  themeStore={themeStore}>
      <SafeAreaProvider>
        <NavigationContainer>
          <Router />
          {/* <GlobalLoading ref={globalLoadingRef} />
        <GlobalMessage ref={globalMessageRef} /> */}
        </NavigationContainer>
      </SafeAreaProvider>
    // </Provider>
  );
}

export default App;
